<form name="f" onsubmit="return validateForm(this);" method="post">
    <!--  form contents -->
</form>